* fns.c (Flength): Don't overflow int when computing a list length.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 22:01:32 +0000 (15:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 22:01:32 +0000 (15:01 -0700)
commit3bb6234fa97ab976a1b33e3510a941754617d574
treec79822dacecd3091c88cbad2c5b7371ca9ad9db4
parentee2e46a37eab007f1a4d71441176318fb889c39d
* fns.c (Flength): Don't overflow int when computing a list length.

Use EMACS_INT, not int, to avoid unwanted truncation on 64-bit hosts.
Check for QUIT every 1024 entries rather than every other entry;
that's faster and is responsive enough.  Report an error instead of
overflowing an integer.
src/ChangeLog
src/fns.c